package com.wuchao.service;

import com.github.pagehelper.PageInfo;
import com.wuchao.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author wuchao66
 * @Date 2022/7/7 14:40
 * @Version 1.0
 */
public interface UserService{
    List<User> findUserByName(String name);

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    //分页
    PageInfo<User> findUserByPage(int currentPage, int pageSize, String name);

}
